import request from "./request"
//获取子级
function getList (data) {
  return request({
    url: '/bus/article/getArticle',
    // /bus/article/getArticle?sortId=8&page=1&limit=2
    method: 'get',
    data
  })
}
//获取顶级路由
function getPermissionsAll (data) {
  return request({
    url: '/bus/trPermission/getPermissionsAll',
    method: 'get',
    data
  })
}
//查询导航栏子级
function getPermissionOne (data) {
  return request({
    url: '/bus/trPermission/getPermissionOne',
    method: 'get',
    data
  })
}
function getHome (data) {
  return request({
    url: '/bus/trPermission/getPermissionOne',
    method: 'get',
    data
  })
}
// 投诉
function sub (data) {

  return request({
    url: '/bus/complaint/addComplaint',
    method: 'get',
    data
  })
}
//获取二维码
function ewm (data) {
  return request({
    url: '/bus/appuser/getCaptcha',
    method: 'get',
    data
  })
}
//搜索路线
function getSeach (data) {
  return request({
    url: '/bus/trLinInfo/getLineInfo',
    method: 'get',
    data
  })
}
//职工之家
function getZgHome (data) {
  return request({
    url: '/bus/trPermission/getWorkers',
    method: 'get',
    data
  })
}

//获取我的推荐
export default {
  getZgHome,
  getSeach,
  ewm,
  sub,
  getHome,
  getList,
  getPermissionsAll,
  getPermissionOne
}